﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using ViewLayer.MainView;

namespace MedSpeech
{
    static class Program
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main(string[] args)
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            if (args.Length != 0)
                //Application.Run(new MainView("201142110724", "2472"));  // VALORES POR DEFAULT PARA PRUEBAS. QUITAR PARA LA EJECUCION DESDE CONSOLA
                Application.Run(new MainView(args[0], args[1])); // Accession number  y  PID
            else
                Application.Run(new MainView("-1", "-1"));        
        }
    }
}
